#pragma once
#include <QtWidgets/QApplication>
#include <QAbstractNativeEventFilter>
#include "ExMainHUD.h"

class ExNativeEventFilter : public QAbstractNativeEventFilter
{

public:

	ExMainHUD* MainHUD;

public:

	virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override
	{
		if (MainHUD != nullptr)
		{	
			return MainHUD->ExNativeEvent(eventType, message, result);
		}
		return false;
	}

};
